﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<System.Web.Mvc.HandleErrorInfo>" %>

<asp:Content ID="errorTitle" ContentPlaceHolderID="TitleContentPlaceHolder" runat="server">
    Error
</asp:Content>

<asp:Content ID="errorContent" ContentPlaceHolderID="MainContent" runat="server">
    <p class="ui-state-error" style="padding: 10px;display: none">
    <span class="ui-state-error-text">
    <%= ViewData["ErrorInfo"] %>
    </span>
    </p>
    
    <p class="ui-state-highlight" style="padding: 10px; display:none">
    <span class="ui-state-highlight-text">
    <%= ViewData["WarningInfo"] %>
    </span>
    </p>
    <script type="text/javascript">
        $(document).ready(function() {
            if ($('.ui-state-error-text').text().trim() != "") {
                $('.ui-state-error-text').parent().fadeIn(3000);
            }
            if ($('.ui-state-highlight-text').text().trim() != "") {
                $('.ui-state-highlight-text').parent().fadeIn(3000);
            }
        });
</script>
</asp:Content>

